<script type="text/javascript" src="${base}/scripts/cggl/cgdstock.js"></script>
<form id="cgdglForm" method="post" class="easyui-tabs" fit="true">
    <input name="cgd.id" type="hidden" value="${(cgd.id)!''}"/>

    <div title="入库单" style="height: 100%;overflow-y: auto">
        <table style="width:98%;margin: 5px;" class="tb tab-t t-bor">
            <col width="80px"/>
            <col width=""/>
            <col width="80px"/>
            <col width=""/>
            <col width="80px"/>
            <col width=""/>
            <tr>
                <th style="font-size:14px;font-weight:bold">入库单号：</th>
                <td colspan="3" style="font-size:14px;font-weight:bold">${(cgd.cgdh)!}
                </td>

                <th style="font-size:14px;font-weight:bold">采购时间：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.cgsj?date)!}</td>
            </tr>
            <tr>
                <th style="font-size:14px;font-weight:bold">采购合同：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.cght.htbm)!}</td>

                <th style="font-size:14px;font-weight:bold">采购类型：</th>
                <td style="font-size:14px;font-weight:bold">
                <#if cgd?? && cgd.cglx?? && cgd.cglx=="cgrk" >采购入库<#else>
                    <#if cgd?? && cgd.cglx?? && cgd.cglx=="zddh" >
                        直达到货<#elseif cgd?? && cgd.cglx?? && cgd.cglx=="bght">
                        保供采购<#else>统配采购</#if>
                </#if>
                </td>

                <th style="font-size:14px;font-weight:bold">供应商：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.gys.qc)!}</td>
            </tr>
        <#if cgd.cglx == "zddh">
            <tr>
                <th style="font-size:14px;font-weight:bold">销售合同：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.xsd.xsht.htbm)!}</td>

                <th style="font-size:14px;font-weight:bold">客户名称：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.xsd.kh.qc)!}</td>

                <th style="font-size:14px;font-weight:bold">工程名称：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.xsd.gc.mc)!}</td>
            </tr>
        </#if>
            <tr>
                <th style="font-size:14px;font-weight:bold">采购公司：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.cggs.qc)!}</td>

                <th style="font-size:14px;font-weight:bold">采购部门：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.cgbm.qc)!}</td>

                <th style="font-size:14px;font-weight:bold">采购人：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.cgr.xm)!}</td>
            </tr>
            <tr>
                <th style="font-size:14px;font-weight:bold">发货公司：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.fhgs.qc)!}</td>
                <th style="font-size:14px;font-weight:bold">发货日期：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.fhrq?date)!}</td>
                <th style="font-size:14px;font-weight:bold">计划到货日期：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.jhdhrq?date)!}</td>
            </tr>
            <tr>

                <th style="font-size:14px;font-weight:bold">到货仓库：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.dzck.mc)!}</td>
                <th style="font-size:14px;font-weight:bold">承运单位：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.ysdw.qc)!}</td>
                <th style="font-size:14px;font-weight:bold">承运号：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.cyh)!}</td>
            </tr>
            <tr>
            <#--<th>车船号：</th>-->
            <#--<td>-->
            <#--&lt;#&ndash;<input id="cgd_cch_id" name="cgd.cch.id" type="text" value="${(xsd.kh.id)!}"&ndash;&gt;-->
            <#--&lt;#&ndash;class="input-text"/>&ndash;&gt;-->
            <#--</td>-->
                <th style="font-size:14px;font-weight:bold">联系电话：</th>
                <td colspan="3" style="font-size:14px;font-weight:bold">${(cgd.lxrdh)!}</td>
                <th style="font-size:14px;font-weight:bold">税率(%)：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.sl)!}</td>
            </tr>
            <tr>
                <th style="font-size:14px;font-weight:bold">备注：</th>
                <td colspan="5" style="font-size:14px;font-weight:bold">${(cgd.bz)!}</td>
            </tr>
        </table>
    </div>
    <div title="入库明细">
        <table id="cgd_mx">
        </table>
    </div>
</form>